<%--
  Created by IntelliJ IDEA.
  User: agen
  Date: 2020/1/15
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" import="java.util.*" isELIgnored="false" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Spring MVC 传参方式</title>
</head>
<body>
<h3>使用 Servlet 原生 API 实现传参</h3>
<form action="/HelloWeb/request" role="form">
    用户名：<input type="text" name="userName"><br/>
    密码：<input type="text" name="password"><br/>
    <input type="submit" value="提  交">
</form>
<h3>注解获取传参</h3>
<form action="/HelloWeb/requestParam" role="form">
    用户名：<input type="text" name="userName"><br/>
    密码：<input type="text" name="password"><br/>
    <input type="submit" value="提  交">
</form>
<h3>post传参解决中文乱码问题</h3>
<form action="/HelloWeb/requestParamBean" role="form" method="post">
    用户名：<input type="text" name="userName"><br/>
    密码：<input type="text" name="password"><br/>
    <input type="submit" value="提  交">
</form>
<h3>post传参Bean</h3>
<form action="/HelloWeb/requestParamBean" role="form" method="post">
    用户名：<input type="text" name="userName"><br/>
    密码：<input type="text" name="password"><br/>
    <input type="submit" value="提  交">
</form>
</body>
</html>
